package com.sinoglobal.ningxia.downdata.parse;

import java.io.IOException;
import java.io.InputStream;

import com.sinoglobal.ningxia.R;
import com.sinoglobal.ningxia.frame.FlyApplication;
import com.sinoglobal.ningxia.utils.TextUtil;

public class TestJson {
	/**
	 * 
	 * @author qiwx
	 * @createdate 2014-6-10 上午9:34:34
	 * @Description:
	 * @type
	 * @return
	 * @throws Exception
	 */
	private static String textToJson(String fileName) {
		try {
			InputStream is = FlyApplication.context.getAssets().open(fileName);
			String json = TextUtil.InputStreamToString(is);
			return json;
		} catch (IOException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	/**
	 * 
	 * @author qiwx
	 * @createdate 2014-6-10 上午9:36:16
	 * @Description:将数据转换成json格式字符串
	 * @type
	 * @return
	 * @throws Exception
	 */

	public static String getColumnList() {
		try {
			return textToJson("getColumnList");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	/**
	 * 
	 * @author wxy
	 * @createdate 2014-6-25 上午11:12:32
	 * @Description: (获取我的活动列表的模拟数据)
	 * @return getMyActivityInfo
	 */
	public static String getMyActivityInfo() {
		try {
			return textToJson("getMyActivityInfo");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	/**
	 * @author zbl
	 * @createdate 2014-6-26 上午11:42:32
	 * @Description: (获取"我的"列表的模拟数据)
	 * @return getEnentsActivityVo
	 */

	public static String getEnentsActivityVo() {
		try {
			String s = textToJson("getEnentsActivityVo");
			return s;
		} catch (Exception e) {
		}
		return null;

	}

	public static String getEnentsListVo() {
		try {
			String s = textToJson("getEnentsListVo");
			return s;
		} catch (Exception e) {
		}
		return null;

	}

	/**
	 * 
	 * @author hxp
	 * @createdate 2014-7-1 下午2:21:21
	 * @Description: 商家详情
	 * @return
	 * 
	 */
	public static String getBusinessDetailVo() {
		try {
			return textToJson("businessDetailVo");
		} catch (Exception e) {
		}
		return null;

	}

	/**
	 * 
	 * @author hxp
	 * @createdate 2014-7-1 下午3:43:31
	 * @Description: 商家评论
	 * @return
	 * 
	 */
	public static String getBusinessCommentList() {
		try {
			return textToJson("commentListVo");
		} catch (Exception e) {
		}
		return null;
	}

	/**
	 * 
	 * @author limeishu
	 * @createdate 2014-7-3 上午10:38:58
	 * @Description: (登录信息)
	 * @return
	 * 
	 */
	public static String getLoginVo() {
		try {
			return textToJson("loginVo");
		} catch (Exception e) {
		}
		return null;
	}

	public static String getAreaListVo() {
		try {
			return textToJson("getAreaListVo");
		} catch (Exception e) {
		}
		return null;
	}

	public static String getMessageVo() {
		try {
			return textToJson("messageVo");
		} catch (Exception e) {
		}
		return null;
	}

	/**
	 * 返回基本类
	 * 
	 * @author hxp
	 * @createdate 2014-7-3 上午10:00:53
	 * @Description:
	 * @return
	 * 
	 */
	public static String getRootVo() {
		try {
			return textToJson("rootVo");
		} catch (Exception e) {
		}
		return null;

	}

	/**
	 * 照片墙
	 * 
	 * @author hxp
	 * @createdate 2014-7-3 下午2:52:18
	 * @Description: (用一句话描述该方法做什么)
	 * @return
	 * 
	 */
	public static String getPhotoWallVo() {
		try {
			return textToJson("photoWallVo");
		} catch (Exception e) {
		}
		return null;

	}

	public static String getAmusementListVo() {
		try {
			return textToJson("getAmusementListVo");
		} catch (Exception e) {
		}
		return null;
	}

	public static String getSettleDownList() {
		try {
			return textToJson("getSettleDownList");
		} catch (Exception e) {
		}
		return null;
	}

	public static String getSettleDownDetails() {
		try {
			return textToJson("getSettleDownDetails");
		} catch (Exception e) {
		}
		return null;
	}

	public static String getAnswerList() {
		try {
			return textToJson("getAnswerList");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	public static String getAnswerRule() {
		try {
			return textToJson("getAnswerRule");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	public static String getAnswerSource() {
		try {
			return textToJson("getAnswerSource");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	public static String getTurRes() {
		try {
			return textToJson("getTurRes");
		} catch (Exception e) {
		}
		return null;

	}
}